<?php session_start(); ?>
<?php include "libfunc.php";?>
<?php if (!empty($_SESSION['admUser']) && !empty($_SESSION['admPass'])) { ?>
<html>
 <head>
  <title>.: Penjual Room ClothingCorp :.</title>
  <link href="admInc/cssMainStyle.css" type="text/css" rel="stylesheet">
  <link href="admInc/cssTableStyle.css" type="text/css" rel="stylesheet">
  <link href="admInc/cssAdditionStyle.css" type="text/css" rel="stylesheet">
  <link href="admInc/cssTableNavigation.css" type="text/css" rel="stylesheet">
 </head>
 <body class="fix">
  <div id="wrapper">
   <div id="header">
    <div class="titleHeader"><center>
     <img src="image/logo2.png" border="0">
	</div><!-- titleHeader //-->
	<div class="subTitleHeader"><center>
	 - Website Penjual Control Panel -
	</div><!-- subTitleHeader //-->
   </div><!-- header //--></center>
   <div id="mainContent">
    <div id="leftColumn">
	 <div class="navigation">
	  <table border="0" width="100%" bgcolor="white">
	  <tr>
	    <td class="headerTable" align="center"><b>Penjual Page</b></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="penjualLayout.php"> Halaman Utama</a></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="newInformation.php"> Informasi Terkini</a></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="LogOut.php" onClick="return confirm('Apakah Anda benar-benar akan keluar dari halaman Admin ?')"> Keluar</a></td>
	  </tr>
	  <tr>
	    <td></td>
	  </tr>
	  <tr>
	    <td></td>
	  </tr>
      <tr>
	    <td></td>
	  </tr>
      <tr>
	    <td></td>
	  </tr>
	  <tr>
	    <td class="headerTable" align="center"><b>Data Kategori</b></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="view_kategori.php"> View Kategori</a></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="pencarian_kategori.php"> Pencarian Kategori</a></td>
	  </tr>
      <tr>
	    <td></td>
	  </tr>
      <tr>
	    <td></td>
	  </tr>
	  <tr>
	    <td class="headerTable" align="center"><b>Data Penjual</b></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="form_edit_penjual.php?"> Edit Profile</a></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="pencarian_penjual.php"> Pencarian Penjual</a></td>
	  </tr>
      <tr>
	    <td></td>
	  </tr>
      <tr>
	    <td></td>
	  </tr>
	  <tr>
	    <td class="headerTable" align="center"><b>Data Produk</b></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="view_produk.php"> View Produk</a></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="pencarian_produk.php"> Pencarian Produk</a></td>
	  </tr>
	  <tr>
		<td></td>
	  </tr>
	  <tr>
		<td></td>
	  </tr>
	  <tr>
		<td></td>
	  </tr>
	  <tr>
	    <td class="headerTable" align="center"><b>Data Pesanan</b></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="view_pesanan.php"> View Pesanan</a></td>
	  </tr>
	  <tr>
	    <td><img src="image/tag_blue.png"><a href="pencarian_pesanan.php"> Pencarian Pesanan</a></td>
	  </tr>
      <tr>
	    <td></td>
	  </tr>
      <tr>
	    <td></td>
	  </tr>
	  
	</table>
	 </div><!-- navigation //-->
	</div><!-- leftColumn //-->
	<div id="rightColumn">
	 <div class="content">
	<?php 
	error_reporting(0);
	  $id = $_GET[id]; // ambil id
		  
	  //-------- koneksi ke database
	  $link = koneksi_db();
	  $sql  = "SELECT * FROM member WHERE id_member = '$id'";
	  $res  = mysql_query($sql,$link);
	  $data = mysql_fetch_array($res);
	  //--------- end of koneksi database
    ?>   
      <!-- View Data member //-->
      <fieldset>
       <legend>Data Member :: <?php echo $data['nama']; ?></legend>
        <table border="0" class="tableDetail">
		 <tr>
		  <td><u>ID Member</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['id_member']; ?></strong></td>
         </tr>
         <tr>
		  <td><u>Alamat</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['alamat']; ?></strong></td>
         </tr>
         <tr> 
          <td><u>Email</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['email']; ?></strong></td>
         </tr>
         <tr>
          <td><u>Kota</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['kota']; ?></strong></td>
         </tr>
         <tr>
		  <td><u>Telpon</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['tlp']; ?></strong></td>
         </tr>
         <tr>
		  <td><u>Katasandi</u></td>
          <td align="right">:</td>
          <td><strong><?php echo $data['katasandi']; ?></strong></td>
         </tr>
		 <tr>
		  <td><u>AKSI</u></td>
          <td align="right">:</td>
          <td>
		   <a href="form_edit_member.php?id=<?php echo $data['id_member']; ?>"><img src="img/page_edit.png" title="Edit" border="0"></a>
		  </td>
		 </tr>
		</table>
	  </fieldset>
   
      
     
	  <div id="keterangan">
       <fieldset>
        <legend>Keterangan</legend>
         Menu View Data Member <b><?php echo $data['nama']; ?></b>. Anda dapat mengedit data tersebut.
       </fieldset>
       </div>
	 </div>
	</div>
   </div><
  </div>
 </body>
</html>
<?php
}else{
  echo "<script language='javascript'>alert('Silakan Sign In Terlebih Dahulu')</script>";
  echo "<script language='javascript'>window.location = '../admin/'</script>";
}